<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>ThinkPHP示例：表单提交验证</title>

 </head>
 <body><script language="JavaScript">
     jQuery.ready(function(){
         jQuery("#title").focus();
     });

	function add(){
		//ThinkAjax.sendForm('form1','__URL__/insert',complete,'result');
                jQuery("#te")[0].value=jQuery("#title").val();
                //jQuery("#te").val()=jQuery("#title").val();
                jQuery("#windown-box").hide();//.fadeOut("fast");
                jQuery("#windownbg").remove();
             
	}
   setInterval(function(){
                jQuery("#te").load(location.href+" #te");
                //alert(jQuery("#te").val());
            },20000);
        
	function complete(data,status){
		if (status==1)
		{
		// 更新列表
		//$('list').innerHTML +=
		//'<div class="result" style=\'font-weight:normal;background:#A6FF4D\'><div style="border-bottom:1px dotted silver">'+data.title+'  ['+data.email+data.create_time+']</div><div class="content">'+data.content+'</div></div>';
		}
	}
	 
 //
 </script>
 <div class="main">
     标题：<input type="text" name="title" id="title"><br/>
     <input type="submit" onClick="add()" value="提 交">
 <form id="form1" method='post' action="__URL__/insertaa">
<div id="result" class="none result" style="font-family:微软雅黑,Tahoma;letter-spacing:2px"></div>
标题：<input type="text" name="title" id="title1"><br/>
邮箱：<input type="text" name="email"><br/>
内容：<textarea name="content"></textarea><br/>
<input type="submit" onClick="add()" value="提 交">
   </form>
</div>
 </body>
</html>
